package com.aso114.project.bean;

import com.aso114.project.treerecyclerview.Tree;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by asus on 2018/12/4.
 */

public class QuestionUserListBean implements Tree {
    private String ParentId;
    private String SpecialId;
    private String SpecialTitle;
    private String SpecialLevel;
    private String RealCount;
    private String TotalQuestions;
    private boolean isOpen;   // 当前自己是否展开
    private boolean parendIsExpand;  //  父节点是否展开
    private boolean isLastIndex;    // 当前是否最后一个
    private boolean isParendLastIndex;  //  父节点是否最后一个

    public boolean isOpen() {
        return isOpen;
    }

    public boolean isLastIndex() {
        return isLastIndex;
    }

    public void setLastIndex(boolean lastIndex) {
        isLastIndex = lastIndex;
    }

    private ArrayList<QuestionUserListBean> QuestionUserList;

    public String getParentId() {
        return ParentId;
    }

    public void setParentId(String parentId) {
        ParentId = parentId;
    }

    public String getSpecialId() {
        return SpecialId;
    }

    public void setSpecialId(String specialId) {
        SpecialId = specialId;
    }

    public String getSpecialTitle() {
        return SpecialTitle;
    }

    public void setSpecialTitle(String specialTitle) {
        SpecialTitle = specialTitle;
    }

    public String getSpecialLevel() {
        return SpecialLevel;
    }

    public void setSpecialLevel(String specialLevel) {
        SpecialLevel = specialLevel;
    }

    public String getRealCount() {
        return RealCount;
    }

    public void setRealCount(String realCount) {
        RealCount = realCount;
    }

    public String getTotalQuestions() {
        return TotalQuestions;
    }

    public void setTotalQuestions(String totalQuestions) {
        TotalQuestions = totalQuestions;
    }

    @Override
    public int getLevel() {
        return Integer.valueOf(SpecialLevel);
    }

    @Override
    public List getChilds() {
        return QuestionUserList;
    }

    public final boolean isExpand() {
        return isOpen;
    }

    public void setOpen(boolean open) {
        isOpen = open;
    }

    public boolean isParendIsExpand() {
        return parendIsExpand;
    }

    public void setParendIsExpand(boolean parendIsExpand) {
        this.parendIsExpand = parendIsExpand;
    }

    public boolean isParendLastIndex() {
        return isParendLastIndex;
    }

    public void setParendLastIndex(boolean parendLastIndex) {
        isParendLastIndex = parendLastIndex;
    }

    public ArrayList<QuestionUserListBean> getQuestionUserList() {
        return QuestionUserList;
    }

    public void setQuestionUserList(ArrayList<QuestionUserListBean> questionUserList) {
        QuestionUserList = questionUserList;
    }
}
